package com.example.echoewish.repository;

import com.example.echoewish.repository.network.CollectionServiceNetwork;

import retrofit2.Callback;

public class CollectionRepository {

    private final static CollectionRepository instance =new CollectionRepository();

    public static CollectionRepository getInstance() {
        return instance;
    }

    public void collectPost(int postId, int userId, Callback callback)
    {
        CollectionServiceNetwork.collectPost(postId,userId,callback);
    }

    public void cancelCollection(int postId, int userId, Callback callback)
    {
        CollectionServiceNetwork.cancelCollection(postId,userId,callback);
    }

    public void queryIsCollect(int postId, int userId, Callback callback)
    {
        CollectionServiceNetwork.queryIsCollect(postId,userId,callback);
    }
}
